package com.zenithmind.disk.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "文件信息DTO")
public class FileDTO {

    @Schema(description = "文件ID")
    private String id;

    @Schema(description = "用户ID")
    private String userId;

    @Schema(description = "父级目录ID")
    private String parentId;

    @NotNull(message = "文件名不能为空")
    @Schema(description = "文件名")
    private String fileName;

    @Schema(description = "文件类型")
    private String fileType;

    @Schema(description = "是否为目录")
    private Boolean isDirectory;

    @Schema(description = "是否加密")
    private Integer isEncrypted;

    @Schema(description = "加密密码")
    private String encryptPassword;
}
